"use strict";

const createUserBase = {
    username: { type: "string", required: true, description: "用户名" },
    password:{type: "string", required: true, description: "密码"},
   info: { type: "string", required: true, description: "标识" },
};

// es测试请求参数
const addUse={
    name:{ type: "string", required: true, description: "姓名"},
    age:{ type: "number", required: true, description: "年龄"},
    gender:{ type: "string", required: true, description: "性别"},
    grade:{type: "number", required: true, description: "成绩"}
}

module.exports = {
    createUserRequest: createUserBase,
    addUse,
    showUserRequest: {
        ...createUserBase,
        id: { type: "string", required: true, description: "id" },
    },
    updateUserRequest: {
        ...createUserBase,
        id: { type: "string", required: true, description: "id" },
    },
};
